package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created by dark on 17/7/10.
 */

/**
 * 查验结果
 */
@Entity(name = "T_BIZ_DECLA_CHECK_RESULT")
public class DeclaCheckResult implements Serializable {
    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID")
    private String id;
    @ManyToOne
    @JoinColumn(name = "CONTENT_ID")
    private DeclaCheckContent declaCheckContent;
    @Column(name = "STATUS")
    private String status;
    @Column(name = "CREATOR")
    private String creator;
    @Column(name = "CREATE_TIME")
    private Date createTime;
    /**
     * 非字典数据的其他不通过原因可以存在这个字段中
     */
    @Column(name = "description")
    private String description;
    /**
     * 0 查验中、
     * 1 查验完成、
     * 2 查验不通过、
     * 4 海关放行'
     */
    @Column(name = "biz_status")
    private String bizStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public DeclaCheckContent getDeclaCheckContent() {
        return declaCheckContent;
    }

    public void setDeclaCheckContent(DeclaCheckContent declaCheckContent) {
        this.declaCheckContent = declaCheckContent;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }
}
